* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', 'Microsoft YaHei', cursive, sans-serif;
}

:root {
    --primary: #ff6b8b;
    --primary-light: #ff9fb0;
    --secondary: #8a5cf2;
    --secondary-light: #b594ff;
    --accent: #ffb74d;
    --background: #fff0f3;
    --surface: #ffffff;
    --text: #5d4037;
    --border: #ffccd5;
}

body {
    background-color: var(--background);
    color: var(--text);
    background-image: 
        radial-gradient(var(--primary-light) 2px, transparent 2px),
        radial-gradient(var(--secondary-light) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/image/bd.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 添加灰色遮罩和高斯模糊 */
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(255, 107, 139, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-color: var(--secondary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.anime-title {
    color: var(--primary);
    font-size: 2.5rem;
    text-shadow: 2px 2px 0px var(--primary-light);
    letter-spacing: 2px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.anime-title::before,
.anime-title::after {
    content: '✿';
    color: var(--secondary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.anime-title::before {
    left: -30px;
}

.anime-title::after {
    right: -30px;
}

.ribbon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}

.ribbon::before {
    content: '新功能!';
    position: absolute;
    top: 20px;
    right: -35px;
    width: 150px;
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: 5px 0;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.heart {
    color: var(--primary);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* 评分样式 */
.rating {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.rating input[type="radio"] {
    display: none;
}

.rating label {
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: white;
}

.rating input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.4);
}

/* 文件上传样式 */
input[type="file"] {
    margin-top: 10px;
    font-size: 0.9rem;
}

#previewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.previewImage {
    max-width: 160px;
    max-height: 160px;
    border-radius: 12px;
    border: 3px solid var(--border);
    transition: transform 0.2s ease;
}

.previewImage:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 按钮样式 */
.anime-btn {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.anime-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.6);
}

.anime-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(255, 107, 139, 0.4);
}

.sparkle {
    position: relative;
    display: inline-block;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* 错误提示 */
.error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* 成功消息 */
.success-message {
    display: none;
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #a5d6a7;
}

/* 二次元角色装饰 */
.anime-character {
    position: fixed;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 150"><circle cx="50" cy="30" r="20" fill="%23ffccd5" /><circle cx="40" cy="25" r="3" fill="%235d4037" /><circle cx="60" cy="25" r="3" fill="%235d4037" /><path d="M40 40 Q50 50 60 40" fill="none" stroke="%23ff6b8b" stroke-width="2" /><path d="M30 70 Q50 110 70 70" fill="%23fff0f3" stroke="%23ffccd5" stroke-width="2" /><path d="M30 70 L20 120 M70 70 L80 120" stroke="%23ffccd5" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
    animation: bounce 5s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .anime-title {
        font-size: 2rem;
    }

    .anime-character {
        width: 200px;
        height: 260px;
        bottom: -30px;
        right: -30px;
    }
}

@media (max-width: 480px) {
    .anime-title {
        font-size: 1.8rem;
    }

    .anime-title::before,
    .anime-title::after {
        display: none;
    }

    .ribbon {
        width: 80px;
        height: 80px;
    }

    .ribbon::before {
        font-size: 0.8rem;
        width: 120px;
        right: -30px;
    }
}